package com.macrosan.bean;

/**
 * @program: spring
 * @ClassName SpringBean
 * @description:
 * @author: zhangkefei
 * @create: 2021-04-01 15:55
 * @Version 1.0
 **/
public class SpringBean {
	static class User{
		Integer id;
		String name;

		public Integer getId() {
			return id;
		}

		public void setId(Integer id) {
			this.id = id;
		}

		public String getName() {
			return name;
		}

		public void setName(String name) {
			this.name = name;
		}
	}
	private static void alloc() {
		User user = new User();
		user.setId(1);
		user.setName("zhuge");
	}
	public static void main(String[] args) {
		long start = System.currentTimeMillis();
		for (int i = 0; i < 100000000; i++) {
			alloc();
		}
		long end = System.currentTimeMillis();
		System.out.println(end - start);
	}
}

